package com.crm.api.fallback;

import com.crm.api.UserService;
import org.springframework.stereotype.Component;
@Component(value = "userService")
public  class UserServiceFallBack implements UserService {

    @Override
    public Object getUserInfo() {
        System.out.println("fallback进入");
        return "请求getUserInfo失败";
    }

    @Override
    public Object getUserInfoById(Long Id) {
        return String.format("请求UserInfoById:%s,%s",Id,"失败");
    }
}
